print(isinstance(5,int))

from functools import lru_cache   #修饰器函数 给函数开辟缓冲区
@lru_cache(maxsize=64)  #最多128
def a():
    return a

from random import randrange

#蒙特卡洛计算pi

scores=[4,1,7,9,10]
highest=max(scores)
print(highest)
scores.remove(highest)
print(scores)

dicts={"a":97,"b":98,"c":99}
print(dicts.items())
for k,v in dicts.items():
    if k == 'a':
        print('v',v)
    print(k,v)

from itertools import cycle #无限循环的圈
c = cycle('abcde')
print(c)

from functools import reduce
from operator import add
#lambda表达式
#reduce map filter
print(list(map(str,range(10))))
print(reduce(add,range(10)))
from random import choices
data = choices(range(10000),k=20)
print(list(filter(lambda num:num%2==0,data)))

from math import gcd

